﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using DAL.Repositories;

namespace BLL
{
    public class BookingCTR : Interfaces.IBookingCTR
    {
        BookingRepository _bookingRep;

        public BookingCTR()
        {
            _bookingRep = new BookingRepository();
        }

        /// <summary>
        /// Save booking to database
        /// </summary>
        /// <param name="booking">Booking to save</param>
        /// <exception cref="InvalidOperationException"></exception>
        /// <exception cref="Exception"></exception>
        public void SaveBooking(Booking booking)
        {
            _bookingRep.SaveBooking(booking);
        }

    }
}
